package com.cw.jeeyt.dao.intf.process;

import java.util.List;

import com.cw.jeeyt.common.Order;
import com.cw.jeeyt.dao.model.process.ActReModelDo;
import com.cw.lang.mybatis.dto.PageInfo;

/**
 * dao数据库操作接口
 *
 * @author chenw
 * @date 2019-03-23 23:37:05
 */
public interface ActReModelDao {
    /**
     * 新增
     *
     * @param actReModel
     * @return 整数
     */
    Integer insert(ActReModelDo actReModel);

    /**
     * 新增不为空的字段
     *
     * @param actReModel
     * @return 整数
     */
    Integer insertSelective(ActReModelDo actReModel);

    /**
     * 删除
     *
     * @param actReModel
     */
    void delete(ActReModelDo actReModel);

    /**
     * 修改不为null的字段
     *
     * @param actReModel
     */
    void updateSelective(ActReModelDo actReModel);

    /**
     * 修改
     *
     * @param actReModel
     */
    void update(ActReModelDo actReModel);

    /**
     * 根据主键查询
     *
     * @return
     */
    ActReModelDo getById(String id_);

    /**
     * 查询所有
     *
     * @return 集合
     */
    List<ActReModelDo> queryActReModelList();

    /**
     * 分页查询
     *
     * @param actReModel 查询条件
     * @param startNum 开始条数
     * @param pageSize 每页长度
     * @return 集合
     */
    PageInfo<ActReModelDo> queryByPage(ActReModelDo actReModel, Integer startNum, Integer pageSize, Order order);
}
